package com.fortune.dao;

import com.fortune.dto.in.cReturnDeposit.CReturnAddDepositDto;
import com.fortune.vo.cReturnDeposit.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/5/29 0029.
 */
public interface CReturnDepositDao {

    List<CReturnDeposit> findCReturnDepositList(@Param("type")Integer type,@Param("did")String did,@Param("id")String id);

    List<RefundDetails> findCReturnProList(@Param("id")String id);

    CReturnDepositDetail findCReturnDepositDetail(@Param("id")String id, @Param("clientId")String clientId,@Param("did")String did);

    List<DetailCReturn> findListCReturn(@Param("id")String id,@Param("clientId")String clientId,@Param("did")String did);

    VReturnDepositOverview findVReturnDepositOverview(@Param("did")String did,@Param("id")String cid);

    int deleteReturnDeposit(@Param("id")String id,@Param("did")String did,@Param("cid")String cid);

    int apply(@Param("dto") CReturnAddDepositDto dto,@Param("did") String did,@Param("cid") String cid,@Param("id")String id);

    int findNO(@Param("did")String did,@Param("cid")String cid);

    int applyDetail(@Param("refundDetails")RefundDetails refundDetails,@Param("did") String did,@Param("cid") String cid,@Param("id")String id,@Param("no")int no);

    int delCReturnDeposit(@Param("did") String did,@Param("clientId") String clientId,@Param("returnDepositId") String returnDepositId);
}
